package com.elli0tt.session;

import com.elli0tt.pojo.Configuration;
import com.elli0tt.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @author elli0tt
 * @version 1.0
 * @className Executor.java
 * @description 执行器接口
 * @createTime 2020-08-28 23:28:40
 */
public interface Executor {

    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    int update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

}
